/**
 * 从 localStorage 获取 token
 * @returns string | null
 */
export const getToken = (): string | null => {
  if (typeof window === 'undefined') {
    return null;
  }
  console.log(localStorage.getItem('token'))
  return localStorage.getItem('token');
}; 